package com.csc.dataaccess.dao;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.Session;

import com.csc.dataaccess.entity.Ljdeexttrt;
import com.csc.dataaccess.util.MtlBatchHibernateUtil;

/**
 * Home interface for domain model class Ljdeexttrt.
 * @see com.csc.dataaccess.dao.Ljdeexttrt
 * @author CSC
 */
//public interface LjdeexttrtDao {
//
//	public void persist(Ljdeexttrt transientInstance);
//
//	public void attachDirty(Ljdeexttrt instance);
//
//	public void attachClean(Ljdeexttrt instance);
//
//	public void delete(Ljdeexttrt persistentInstance);
//
//	public Ljdeexttrt merge(Ljdeexttrt detachedInstance);
//
//	public Ljdeexttrt findById(long id);
//	
//	public List<Ljdeexttrt> findByExample(Ljdeexttrt instance);
//	
//}

	public class LjdeexttrtDao extends MtlBatchHibernateUtil {
		
		public List<Ljdeexttrt> getAllLjdeexttrt() {
	
			/**
			 * get the session.
			 */
			Session session = null;
	
			List<Ljdeexttrt> LjdeexttrtList = null;
			try {
				Criteria criteria;
				session = getSession();
				criteria = session.createCriteria(Ljdeexttrt.class);
				LjdeexttrtList = criteria.list();
	
			} catch (HibernateException hibernateException) {
				hibernateException.printStackTrace();
			} catch (Exception e) {
				e.printStackTrace();
			} finally {
				closeSession(session);
			}
	
			return LjdeexttrtList;
		}
	
	}